package com.dong.i18n_demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class LocalController {

    @GetMapping("/name")
    public String getName(){
         String message =LocalUtil.get("user.appname");  //调用
        return message;
    }
}
